<extend name="Base/common"/>

<block name="style">
<link href="__CSS__/stylesheet.css" rel="stylesheet">
<link href="__CSS__/order_save.css" rel="stylesheet">
</block>

<block name="header">
<header>
	<div class="container">
		<section class="menu-top">
			<div class="fl">
				<section class="header-logo-search">
					<div class="logo fl">
						<img src="__IMG__/logo.png"/>
					</div>
					<div class="search form-group fl">
						<form action="" method="post" autocomplete="off">
							<div class="dropdown fl">
								<a data-toggle="dropdown" href="javascript:;">商品</a>
								<ul class="dropdown-menu">
									<li><a href="javascript:;" data-id="putong">商品</a></li>
									<li><a href="javascript:;" data-id="paipin">拍品</a></li>
									<li><a href="javascript:;" data-id="xianzhi">闲置</a></li>
								</ul>
							</div>
							<input name="type" type="hidden" value="putong">
							<input name="title" type="text" class="search-text" />
							<a href="javascript:;" class="search-btn fr">搜 索</a>
							<script type="text/javascript">
							$(function(){
								$('.dropdown li a').click(function(){
									self = $(this), type = $('.search input[name="type"]');
									$('.dropdown > a').text(self.text());
									type.val(self.attr('data-id'));
								});
							});
							</script>
						</form>
					</div>
				</section>
				<section class="header-ad">
					<img src="__IMG__/header_ad.png">
				</section>
			</div>
	        <div class="fr qrecode">
	            <img src="__IMG__/QRcode.png"/>
	        </div>
        </section>
        <div class="sub-menu fl">
			<a class="sub-menu-top" href="{:U('Product/Index')}">全部商品分类</a>
			<ul class="hidden">
				<volist name=":getCategoryTree()" id='vo'>
					<li>
						<a  class="title" href="{:U('Product/Index?fid='.$vo['id'])}">{$vo.title}</a>
						<div class="sub-menu-list">
							<volist name="vo._child" id="child">
								 <a href="{:U('Product/Index?cid='.$child['id'])}">{$child.title}</a>
					 		</volist>
						</div>
					</li>
				</volist>	
			</ul>
		</div>
		<div class="sub-nav">
	       	<ul>
	       		<li><a href="{:U('Index/index')}">首页</a></li>
	       		<li><a href="{:U('Identify/index')}">鉴真宝</a></li>
	       		<li><a href="{:U('Pzb/index')}">拍真宝</a></li>
	       		<li><a href="{:U('Qgh/index')}">抢购会</a></li>
	       		<li><a href="{:U('Pzg/index')}">拍照购</a></li>
	       		<li><a href="{:U('Xlw/index')}">选礼物</a></li>
	       		<li><a href="{:U('Xz/index')}">闲置</a></li>
	       	</ul>
	    </div>
	</div>
</header>
</block>

<block name="body">
<div class="container main">
	<h3>确认订单</h3>
	<form action="{:U('AjaxAction/saveOrder')}"   class="form-horizontal" enctype="multipart/form-data">
	<div class="panel">
		<div class="head"><label>确认收货地址</label><a class="fr" href="#">管理收货地址</a></div>
		<ul class="receives">		
			<volist name="receive_list" id="vore">
			<li>
				<ul class="info">
					<li><input type="radio" value="{$vore.id}" name="receive_id" <eq value='1' name="vore['is_default']">checked="checked"</eq> > </li>
					<li>{$vore.address_full}{$vore.address}</li>
					<li>（{$vore.realname} 收）</li>
					<li class="mobile">{$vore.mobile}</li>
					<li><a href="#">编辑</a></li>
				</ul>
			</li>
			</volist>
			
		</ul>
		<div class="head"><label>确认订单信息</label></div>
		<div class="pro">
			<ul class="thead">
				<li>
					<ul class="table">
						<li></li>
						<li>商品信息</li>
						<li>单价（元）</li>
						<li>数量</li>
						<li>小计（元）</li>
					</ul>
				</li>
			</ul>
			<ul class="tbody">
				<li>
				<volist name="product_list" id="volist">
					<ul class="table">
						<input type="hidden" name="productid" value="{$volist.product_id}" />
						<input type="hidden" name="quantity" value="{$volist.quantity}" />
						<li><img src="{$volist.image_path}"></li>
						<li><span>{$volist.productd_title}</span></li>
						<li>￥{$volist.unit_price}</li>
						<li>{$volist.quantity}</li>
						<li><em class="yen">￥</em><em class="price">{$volist.price}</em></li>
					</ul>
				</volist>					
				</li>				
			</ul>
			<div class="total">
				<span class="fl">聚真宝保真鉴定服务费：<del>￥{$identify_price}</del></span>
				<span class="fr"><em class="yen">￥</em><em class="price">0</em></span>
			</div>
			<div class="total jianding">
				<p class="fr">卖家包鉴定</p>
			</div>
			<div class="total total-price">
				<p class="fr">应付款：<em class="yen">￥</em><em class="price">{$totalprice}</em></p>
			</div>
			<div class="payment">
				<button type="submit" class="btn fr ajax-post" target-form="form-horizontal">立即付款</button>
			</div>
		</div>
	</div>
	</form>
</div>
</block>